package com.care.ui;


import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.care.dao.admin.impl.AdminDaoImpl;
import com.care.entity.User;





public class test {
	@Autowired
	private AdminDaoImpl adi;
	
	public static void main(String[] args) {
		new test().addUser();
	}
	public void addUser(){

		ApplicationContext aContext=new ClassPathXmlApplicationContext("applicationContext.xml");	
//		System.out.println(aContext);
		User user = new User("a","a","男","13");
		System.out.println(adi);
		
		adi.addUser(user);
    }
 
 }